package com.example.demo.mapper;

import com.example.demo.bean.StateMachineState;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StateMachineStateMapper {

    // 插入状态机状态信息
    int insert(StateMachineState stateMachineState);

    // 根据 ID 进行逻辑删除（将删除标识设置为 1）
    int deleteById(@Param("id") Long id);

    // 根据 ID 更新状态机状态信息
    int updateById(StateMachineState stateMachineState);

    // 根据 ID 查询状态机状态信息
    StateMachineState selectById(@Param("id") Long id);

    StateMachineState selectByOrderId(@Param("orderId")Long orderId);
}
